import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqDelegateHelper } from "./SeqDelegateHelper";
type int = number;
//class SCanDelegate
    
    export  class SCanDelegate extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCanDelegate();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqDelegateHelper.write(arg1, this.sDelegates);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.sDelegates = SeqDelegateHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12271;

        public /* var */sDelegates: Array<any>;

        public static /* var */_regist: SCanDelegate;
    }

            SCanDelegate._regist = new SCanDelegate(true);
        